Esempio n. 1
0
 def test_get_all_doc_owners_names(self):
     self.assertEqual(app.get_all_doc_owners_names(),
                      set([doc['name'] for doc in self.docs]))
Esempio n. 2
0
 def test_get_all_doc_owners_names(self):
     result = get_all_doc_owners_names()
     self.assertIsInstance(result, set)
     pass
Esempio n. 3
0
 def test_get_all_doc_owners_names(self):
     self.assertIsInstance(app.get_all_doc_owners_names(), set)
     self.assertEqual(len(app.get_all_doc_owners_names()), len(documents))
Esempio n. 4
0
 def test_get_all_doc_owners_names(self):
     self.assertEqual(set(item['name'] for item in app.documents),
                      app.get_all_doc_owners_names())
Esempio n. 5
0
 def test_get_all_doc_owners_names(self):
     result = app.get_all_doc_owners_names()
     uniq_owners = set(
         ['Геннадий Покемонов', "Василий Гупкин", "Аристарх Павлов"])
     assert len(uniq_owners.difference(result)) == 0
Esempio n. 6
0
 def test_all_document_owners(self):
     list_len = len(self.docs)
     for name in self.docs:
         result = app.get_all_doc_owners_names()
         self.assertIn(name['name'], result)
         self.assertEqual(list_len, len(result))
Esempio n. 7
0
 def test_get_all_doc_owners_names(self):
     self.assertIsInstance(app.get_all_doc_owners_names(), set)
     self.assertGreater(len(app.get_all_doc_owners_names()), 0)
Esempio n. 8
0
 def test_get_all_doc_owners_names(self):
     all_doc_list = app.get_all_doc_owners_names()
     self.assertIsInstance(all_doc_list, set)
Esempio n. 9
0
 def test_get_all_doc_owners_names(self):
     result = app.get_all_doc_owners_names()
     self.assertSetEqual(
         result,
         {'Аристарх Павлов', 'Василий Гупкин', 'Геннадий Покемонов'})
Esempio n. 10
0
 def test_get_all_doc_owner_names(self):
     names_list = [self.docs[0]['name'], self.docs[1]['name'], self.docs[2]['name']]
     check = (app.get_all_doc_owners_names())
     self.assertIs(len(check), len(names_list))
Esempio n. 11
0
 def test_include(self):
     self.assertCountEqual(app.get_all_doc_owners_names(),
                           [docs["name"] for docs in documents])
Esempio n. 12
0
 def test_get_all_doc_owners_names(self):
     self.assertEqual(len(app.get_all_doc_owners_names()), 3)
Esempio n. 13
0
 def test_get_all_doc_owners_names(self):
     result = app.get_all_doc_owners_names()
     self.assertTrue(result)
     for name in result:
         self.assertIn(name, self.get_docs_owners())
Esempio n. 14
0
 def test_get_wrong_doc_owners_names(self):
     user_list = app.get_all_doc_owners_names()
     self.assertSetEqual(user_list, {
         'Василий Гупкин', 'Геннадий Покемонов', 'Аристарх Павлов',
         'Брет Пит'
     })
Esempio n. 15
0
 def test_get_all_doc_owners_names(self):
     self.assertIsInstance(app.get_all_doc_owners_names(), set)
Esempio n. 16
0
 def testing_get_all_doc_owner_names(self):
     persons_list = [
         self.docs[0]['name'], self.docs[1]['name'], self.docs[2]['name']
     ]
     checked_names = (app.get_all_doc_owners_names())
     self.assertIs(len(checked_names), len(persons_list))
Esempio n. 17
0
 def test_not_raise_get_doc(self):
     with patch('app.update_date',
                return_value=(self.dirs, self.error_docs)):
         with patch('app.input', return_value='q'):
             app.secretary_program_start()
         app.get_all_doc_owners_names()
Esempio n. 18
0
 def test_check_all_doc_owners_names(self):
     self.assertEqual(len(set([x['name'] for x in self.docs])), \
     len(app.get_all_doc_owners_names()))
Esempio n. 19
0
 def test_get_all_docs(self):
     with patch('app.update_date',
                return_value=(self.dirs, self.error_docs)):
         response = app.get_all_doc_owners_names()
         self.assertEqual(response, self.get_all_docs)
Esempio n. 20
0
 def test_get_all_doc_owners_names(self):
     len_output = len(app.get_all_doc_owners_names())
     self.assertEqual(len_output, 3)
Esempio n. 21
0
 def test_get_all_doc_owners_names(self):
     all_doc_set = app.get_all_doc_owners_names()
     self.assertEqual(len(app.documents), len(all_doc_set))
     self.assertIsInstance(all_doc_set, set)
     for document in all_doc_set:
         self.assertIsInstance(document, str)
Esempio n. 22
0
 def test_get_all_doc_owners_names(self):
     dict = {}
     self.assertIsNot(app.get_all_doc_owners_names().__class__, dict.__class__)