def test_dd_get_data_after_team_deletion(self): print("test_get_data_after_team_deletion") test_group = "test_group_01" result = hello.get_data(test_group) self.assertEqual(result, [[f'The group: {test_group} does not exist.'], False]) print( "*=============================================================*")
def test_bbbbb_remove_nonexistent_members(self): print("test_add_members") test_group = "test_group_01" test_members = "Admin:[email protected]" hello.remove_members(test_group, test_members) result = hello.get_data(test_group) # print(f"the result of adding members is: {result}") self.assertEqual(hello.get_members(test_group), \ [['Admin', ['*****@*****.**']], ['Standard', ['There are no standard users']]]) print( "*=============================================================*")
def test_bbb_remove_standard_members(self): print("test_add_members") test_group = "test_group_01" test_members = "Standard:[email protected]" hello.remove_members(test_group, test_members) result = hello.get_data(test_group) # print(f"the result of adding members is: {result}") self.assertEqual(hello.get_members(test_group), \ [['Admin', ['*****@*****.**', '*****@*****.**']], ['Standard', ['There are no standard users']]]) print( "*=============================================================*")
def test_b_get_data(self): print("test_get_data") test_group = "test_group_01" result = hello.get_data(test_group) self.assertEqual(result, [[[{ 'Notifications': [] }, { 'Files': [] }, { 'Tasks': [] }], []], True]) print( "*=============================================================*")