Пример #1
0
 def test_make_password_spaces(self):
     """Tests make password with spaces"""
     self.assertEqual(hw4.make_password('              '), '')
Пример #2
0
 def test_make_password_tabs(self):
     """Tests make password with tabs to see if they are stripped"""
     self.assertEqual(hw4.make_password('              '), '')
Пример #3
0
 def test_make_password_single_word(self):
     """Tests make password with a word"""
     self.assertEqual(hw4.make_password('python'), 'P')
Пример #4
0
 def test_make_password_blank(self):
     """Tests make password with blank"""
     self.assertEqual(hw4.make_password(''), '')
Пример #5
0
 def test_make_password(self):
     """Tests make password with a sentence"""
     self.assertEqual(
         hw4.make_password('Simple is       better than  \t '
                           'complicated'), 'SIBTC')
Пример #6
0
 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(''), '')
Пример #7
0
 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')
Пример #8
0
 def test_make_password_empty_string(self):
     """Test make_password with empty string"""
     self.assertEqual(hw4.make_password(''), '')
Пример #9
0
 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')