Ejemplo n.º 1
0
    def test_offset__invalid(self):
        epic = EpicFactory()
        frame_set_mock = ["frame1", "frame2"]
        epic.frame_sets = {"my_fs": frame_set_mock}

        assert epic.get_frame("my_fs", 2) is None
Ejemplo n.º 2
0
    def test_offset(self):
        epic = EpicFactory()
        frame_set_mock = ["frame1", "frame2"]
        epic.frame_sets = {"my_fs": frame_set_mock}

        assert epic.get_frame("my_fs", 1) == "frame1"