Commits

Anonymous committed 8551412

opposite > reverse

  • Participants
  • Parent commits adbe7db

Comments (0)

Files changed (2)

flaskext/principal.py

         with self.require(http_exception):
             pass
         
-    def opposite(self):
+    def reverse(self):
         """
-        Returns opposite of current state (needs->excludes, excludes->needs) 
+        Returns reverse of current state (needs->excludes, excludes->needs) 
         """
 
         p = Permission()

tests/test_principal.py

     assert p2.issubset(p3)
 
 
-def test_opposite_permission():
+def test_reverse_permission():
 
     p = Permission(('a', 'b'))
-    d = p.opposite()
+    d = p.reverse()
     print d.excludes
     assert ('a', 'b') in d.excludes