Example #1
0
 def test_dps_json_before_creation_not_empty():
     assert DropPoint.get_dps_json(time - timedelta(seconds=1)) != {}
Example #2
0
 def test_dps_json_since_creation_empty():
     assert DropPoint.get_dps_json(time) == "{}"
Example #3
0
 def test_dps_json_is_not_empty():
     assert len(DropPoint.get_dps_json()) > 1
Example #4
0
 def test_fresh_dps_json_is_empty():
     assert DropPoint.get_dps_json(datetime.today()) == "{}"
Example #5
0
 def test_dps_json_is_string():
     assert type(DropPoint.get_dps_json()) is str