Skip to content

Commit

Permalink
update to account for PRIORIZED flag
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHancock committed May 5, 2018
1 parent 7ca0ffe commit af97f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_simple_source():
if not (isinstance(ss.ra, np.float64)): raise AssertionError()
# convert to string without failing
a = "{0}".format(ss)
if not (a == ' 12.0000000 0.0000000 0.000000 0.000000 0.00 0.00 0.0 000000'): raise AssertionError()
if not (a == ' 12.0000000 0.0000000 0.000000 0.000000 0.00 0.00 0.0 0000000'): raise AssertionError()
if not (ss.__repr__() == ss.__str__()): raise AssertionError()
if not (np.all(ss.as_list()[:-1] == [0.0, 0.0, 12.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0.0, 0.0])): raise AssertionError()
isl = models.IslandSource()
Expand Down Expand Up @@ -80,4 +80,4 @@ def test_classify_catalogue():
for f in dir():
if f.startswith('test'):
print(f)
globals()[f]()
globals()[f]()

0 comments on commit af97f5c

Please sign in to comment.