コード例 #1
0
 def test_nonempty_strings(self):
     init = Init("*****@*****.**", "ellis", "org.projectclearwater.20151201", '1.1')
     init.set_timestamp(TIMESTAMP)
     self.assertEqual(init.serialize(), INIT_STRING_NONEMPTY)
     # Now just check that __str__ doesn't throw
     self.assertGreater(len(str(init)), 0)
コード例 #2
0
 def test_empty_strings(self):
     init = Init('', '', '').set_timestamp(TIMESTAMP)
     self.assertEqual(init.serialize(), INIT_STRING_EMPTY)