Beispiel #1
0
    def test_get_set_frame_id(self):
        ts = TrackState(0)

        ts.frame_id = 23456
        nose.tools.assert_equal(ts.frame_id, 23456)

        # Back to 0
        ts.frame_id = 0
        nose.tools.assert_equal(ts.frame_id, 0)
Beispiel #2
0
    def test_equality(self):
        ts1 = TrackState(0)
        ts2 = TrackState(0)

        nose.tools.ok_(ts1 == ts2)

        ts2.frame_id = 23456
        nose.tools.assert_false(ts1 == ts2)

        ts1.frame_id = 23456
        nose.tools.ok_(ts1 == ts2)