File: test_protonate.py

package info (click to toggle)
propka 3.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,920 kB
  • sloc: python: 7,156; makefile: 39
file content (13 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
import propka.atom
import propka.protonate


def test_protonate_atom():
    atom = propka.atom.Atom(
        "HETATM 4479  V   VO4 A1578     -19.097  16.967   0.500  1.00 17.21           V  "
    )
    assert not atom.is_protonated
    p = propka.protonate.Protonate()
    p.protonate_atom(atom)
    assert atom.is_protonated
    assert atom.number_of_protons_to_add == 6