def test_sideboard_one_card(self): b = [DECK_MAIN, DECK_SB, '1 Shock'] expected_result = (1,2) actual_result = find_section(b, 2) self.assertEqual(actual_result, expected_result)
def test_main_and_blank_line_before_and_after(self): b = ['', DECK_MAIN, ''] expected_result = (1, 2) actual_result = find_section(b, 1) self.assertEqual(actual_result, expected_result)
def test_main_sideboard(self): b = [DECK_MAIN, DECK_SB] expected_result = (0,0) actual_result = find_section(b, 1) self.assertEqual(actual_result, expected_result)
def test_main_and_card_another(self): b = [DECK_MAIN, '4\tFervent Champion'] expected_result = (0, 1) actual_result = find_section(b, 1) self.assertEqual(actual_result, expected_result)
def test_main_and_card(self): b = [DECK_MAIN, '1 Shock'] expected_result = (0, 1) actual_result = find_section(b, 1) self.assertEqual(actual_result, expected_result)
def test_main_and_blank_line(self): b = [DECK_MAIN, ''] expected_result = (0, 1) actual_result = find_section(b, 1) self.assertEqual(actual_result, expected_result)
def test_only_main(self): b = [DECK_MAIN] expected_result = (0, 0) actual_result = find_section(b, 1) self.assertEqual(actual_result, expected_result)
def test_zero_lines(self): b = [] expected_result = None actual_result = find_section(b, 1) self.assertEqual(actual_result, expected_result)