-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A test that causes a Bus Error 10 for me.
This doesn't seem to fail on Master, but does on Cat, for me.
- Loading branch information
Showing
1 changed file
with
48 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,48 @@ | ||
""" | ||
This scripts runs tests on the database | ||
""" | ||
from rmgpy import settings | ||
|
||
import unittest | ||
import rmgpy.molecule.group | ||
|
||
import nose | ||
import nose.tools | ||
|
||
|
||
class TestMoleculeGeneration(unittest.TestCase): | ||
""" | ||
Contains unit tests for the database for rigorous error checking. | ||
""" | ||
@classmethod | ||
def setUpClass(cls): | ||
""" | ||
Load the database before running the tests. | ||
""" | ||
pass | ||
|
||
def test_aworking(self): | ||
g = rmgpy.molecule.group.Group() | ||
|
||
# Cb-Cs from thermo groups | ||
g.fromAdjacencyList(""" | ||
1 * Cb u0 {2,S} | ||
2 Cs u0 {1,S} | ||
""") | ||
|
||
g.makeSampleMolecule() | ||
|
||
def test_broken(self): | ||
g = rmgpy.molecule.group.Group() | ||
|
||
# Cb-Cl from thermo groups | ||
g.fromAdjacencyList(""" | ||
1 * Cb u0 {2,S} | ||
2 Cl1s u0 {1,S} | ||
""") | ||
|
||
g.makeSampleMolecule() | ||
|
||
|
||
if __name__ == '__main__': | ||
nose.run(argv=[__file__, '-v', '--nologcapture'], defaultTest=__name__) |