Exemple #1
0
 def test__get_role_from_js(self):
     self.assertEquals(_get_role_from_js('owner'), ROLE_OWNER)
     self.assertEquals(_get_role_from_js('member'), ROLE_MEMBER)
     self.assertEquals(_get_role_from_js('viewer'), ROLE_VIEWER)
Exemple #2
0
 def test__get_role_from_js(self):
     self.assertEquals(_get_role_from_js('owner'), ROLE_OWNER)
     self.assertEquals(_get_role_from_js('member'), ROLE_MEMBER)
     self.assertEquals(_get_role_from_js('viewer'), ROLE_VIEWER)