Exemple #1
0
 def test_get_user_by_name_found(self):
     user = UnityCifsShare.get_user(cli=t_rest(),
                                    name=r'win2012.dev\hyperv')
     assert_that(user['name'], equal_to(r'win2012.dev\hyperv'))
     assert_that(user['userID'].strip(),
                 equal_to('S-1-5-15-be80fa7-8ddad211-d49ba5f9-467'))
Exemple #2
0
 def test_get_user_by_name_not_found(self):
     user = UnityCifsShare.get_user(cli=t_rest(), name=r'win2012.dev\abc')
     assert_that(user, none())
Exemple #3
0
 def test_get_user_all(self):
     users = UnityCifsShare.get_user(cli=t_rest())
     assert_that(len(users), equal_to(3))