def test_scope_trace(self):
     assoc = TrailAssoc(Trail(), Trail(), SCOPE_TRACE).set_timestamp(TIMESTAMP)
     self.assertEqual(assoc.serialize(), ASSOC_STRING_SCOPE_TRACE)
     # Now just check that __str__ doesn't throw
     self.assertGreater(len(str(assoc)), 0)
 def test_scope_branch(self):
     assoc = TrailAssoc(Trail(), Trail(), SCOPE_BRANCH).set_timestamp(TIMESTAMP)
     self.assertEqual(assoc.serialize(), ASSOC_STRING_SCOPE_BRANCH)
 def test_scope_none(self):
     assoc = TrailAssoc(Trail(), Trail(), SCOPE_NONE).set_timestamp(TIMESTAMP)
     self.assertEqual(assoc.serialize(), ASSOC_STRING_SCOPE_NONE)
 def test_scope_trace(self):
     assoc = TrailAssoc(Trail(), Trail(),
                        SCOPE_TRACE).set_timestamp(TIMESTAMP)
     self.assertEqual(assoc.serialize(), ASSOC_STRING_SCOPE_TRACE)
     # Now just check that __str__ doesn't throw
     self.assertGreater(len(str(assoc)), 0)
 def test_scope_branch(self):
     assoc = TrailAssoc(Trail(), Trail(),
                        SCOPE_BRANCH).set_timestamp(TIMESTAMP)
     self.assertEqual(assoc.serialize(), ASSOC_STRING_SCOPE_BRANCH)
 def test_scope_none(self):
     assoc = TrailAssoc(Trail(), Trail(),
                        SCOPE_NONE).set_timestamp(TIMESTAMP)
     self.assertEqual(assoc.serialize(), ASSOC_STRING_SCOPE_NONE)