Exemplo n.º 1
0
 def test_make_password_spaces(self):
     """Tests make password with spaces"""
     self.assertEqual(hw4.make_password('              '), '')
Exemplo n.º 2
0
 def test_make_password_tabs(self):
     """Tests make password with tabs to see if they are stripped"""
     self.assertEqual(hw4.make_password('              '), '')
Exemplo n.º 3
0
 def test_make_password_single_word(self):
     """Tests make password with a word"""
     self.assertEqual(hw4.make_password('python'), 'P')
Exemplo n.º 4
0
 def test_make_password_blank(self):
     """Tests make password with blank"""
     self.assertEqual(hw4.make_password(''), '')
Exemplo n.º 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')
Exemplo n.º 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(''), '')
Exemplo n.º 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')
Exemplo n.º 8
0
 def test_make_password_empty_string(self):
     """Test make_password with empty string"""
     self.assertEqual(hw4.make_password(''), '')
Exemplo n.º 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')