def test_given_unspecified_contacts_then_output_csv_format(self, mock_clone, mock_git): self.args.csv = True module = "test_module" contact = "unspecified" cc = "unspecified" output = dls_module_contacts.output_csv_format(contact, cc, module) self.assertEqual(output, "test_module,unspecified,unspecified,unspecified,unspecified")
def test_given_contacts_then_output_csv_format(self, mock_clone, mock_git, _2): self.args.csv = True module = "test_module" contact = "test_contact" cc = "test_cc" output = dls_module_contacts.output_csv_format(contact, cc, module) self.assertEqual(output, "test_module,test_contact,test_contact_name,test_cc,test_cc_name")
def test_given_unspecified_contacts_then_output_csv_format(self, _): self.args.csv = True module = "test_module" contact = "unspecified" cc = "unspecified" output = dls_module_contacts.output_csv_format(contact, cc, module) self.assertEqual( output, "test_module,unspecified,unspecified,unspecified,unspecified")
def test_given_contacts_then_output_csv_format(self, _, _2): self.args.csv = True module = "test_module" contact = "test_contact" cc = "test_cc" output = dls_module_contacts.output_csv_format(contact, cc, module) self.assertEqual( output, "test_module,test_contact,test_contact_name,test_cc,test_cc_name")