Ejemplo n.º 1
0
 def test_search_garbage_raises_exception(self, test_input,
                                          rat_board_fx: RatBoard,
                                          rescue_plain_fx: Rescue):
     rescue_plain_fx.uuid = UUID('12345678-9876-53d1-ea5e-0000deadbeef')
     rat_board_fx.append(rescue_plain_fx)
     with pytest.raises((
             TypeError,
             ValueError,
     )):
         rat_board_fx.search(test_input)
Ejemplo n.º 2
0
 def test_search_garbage_returns_none(self, test_input,
                                      rat_board_fx: RatBoard,
                                      rescue_plain_fx: Rescue):
     rescue_plain_fx.uuid = UUID('12345678-9876-53d1-ea5e-0000deadbeef')
     rat_board_fx.append(rescue_plain_fx)
     assert rat_board_fx.search(test_input) is None
Ejemplo n.º 3
0
 def test_search_valid(self, test_input, rat_board_fx: RatBoard,
                       rescue_plain_fx: Rescue):
     rescue_plain_fx.uuid = UUID('12345678-9876-53d1-ea5e-0000deadbeef')
     rat_board_fx.append(rescue_plain_fx)
     assert rat_board_fx.search(test_input) == rescue_plain_fx