def test_make_password_spaces(self): """Tests make password with spaces""" self.assertEqual(hw4.make_password(' '), '')
def test_make_password_tabs(self): """Tests make password with tabs to see if they are stripped""" self.assertEqual(hw4.make_password(' '), '')
def test_make_password_single_word(self): """Tests make password with a word""" self.assertEqual(hw4.make_password('python'), 'P')
def test_make_password_blank(self): """Tests make password with blank""" self.assertEqual(hw4.make_password(''), '')
def test_make_password(self): """Tests make password with a sentence""" self.assertEqual( hw4.make_password('Simple is better than \t ' 'complicated'), 'SIBTC')
def test_password(self): self.assertEqual(hw4.make_password ('Simple is better than \t complicated'),'SIBTC') self.assertEqual(hw4.make_password('python'), 'P') self.assertEqual(hw4.make_password(''), '')
def test_make_password_default(self): """Test make_password with default values""" self.assertEqual( hw4.make_password('Simple is better than \t ' 'complicated'), 'SIBTC') self.assertEqual(hw4.make_password('python'), 'P')
def test_make_password_empty_string(self): """Test make_password with empty string""" self.assertEqual(hw4.make_password(''), '')
def test_make_password(self): """Test make_password with strings""" self.assertEqual(hw4.make_password ('Simple is better than \t complicated'),'SIBTC') self.assertEqual(hw4.make_password('python'), 'P')