def test_WhenEvaluateA_ItShouldBe0(self): """ When the string list is '['A']' the number of pairs should be 0 """ # Arrange string_list = ['A'] expected_value = 0 # Act current_value = Strategy.obtain_pairs_number(string_list) # Assert self.assertEqual(expected_value, current_value)
def test_WhenEvaluateBABB_ItShouldBe2(self): """ When the string list is '['B', 'A', 'B', 'B']' the number of pairs should be 2 :return: """ # Arrange string_list = ['B', 'A', 'B', 'B'] expected_value = 2 # Act current_value = Strategy.obtain_pairs_number(string_list) # Assert self.assertEqual(expected_value, current_value)