def METHOD_NAME(self):
    # No permissions
    self.assertFalse(self.user.can_access_project(self.project))
    self.assertFalse(self.user.has_perm("unit.edit", self.translation))
    # Access permission on adding to group
    self.user.clear_cache()
    self.user.groups.add(self.group)
    self.assertTrue(self.user.can_access_project(self.project))
    self.assertFalse(self.user.has_perm("unit.edit", self.translation))
    # Translate permission on adding role to group
    self.user.clear_cache()
    self.group.roles.add(Role.objects.get(name="Power user"))
    self.assertTrue(self.user.can_access_project(self.project))
    self.assertTrue(self.user.has_perm("unit.edit", self.translation))