Skip to content

Commit

Permalink
Add unit test for protonate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
latrocinia committed Mar 2, 2022
1 parent f49eaed commit b920f5a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_protonate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit b920f5a

Please sign in to comment.