コード例 #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
ファイル: graceTest.py プロジェクト: Kiwibud/hw7
 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
ファイル: graceTest.py プロジェクト: Kiwibud/hw7
 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')