-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f49eaed
commit b920f5a
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |