def test_check_is_shift_code_returns_false_for_correct_character_length_and_5_sections( self): actual = tweet_analyzer.is_shift_code( SHIFT_CODE_CORRECT_LENGTH_5_SECTIONS) self.assertFalse(actual)
def test_check_is_shift_code_returns_false_for_correct_character_correct_section_count_incorrect_section_placement( self): actual = tweet_analyzer.is_shift_code( SHIFT_CODE_CORRECT_LENGTH_CORRECT_SECTION_COUNT_INCORRECT_SECTION_PLACEMENT ) self.assertFalse(actual)
def test_check_is_shift_code_returns_false_for_extra_character_at_beginning( self): actual = tweet_analyzer.is_shift_code( SHIFT_CODE_EXTRA_CHARACTER_AT_BEGINNING) self.assertFalse(actual)
def test_check_is_shift_code_returns_false_for_missing_character_at_end( self): actual = tweet_analyzer.is_shift_code( SHIFT_CODE_MISSING_CHARACTER_AT_END) self.assertFalse(actual)
def test_check_is_shift_code_returns_false_for_shift_code_that_includes_space( self): actual = tweet_analyzer.is_shift_code(SHIFT_CODE_INCLUDES_SPACE) self.assertFalse(actual)
def test_check_is_shift_code_returns_false_for_bad_shift_code(self): actual = tweet_analyzer.is_shift_code(BAD_SHIFT_CODE) self.assertFalse(actual)
def test_check_is_shift_code_returns_true_for_good_shift_code(self): actual = tweet_analyzer.is_shift_code(GOOD_SHIFT_CODE) self.assertTrue(actual)