def METHOD_NAME(self):
    """
    Test whether custom get_accesible_pipelines method returns a filtered queryset
    with all the pipelines that are accessible to a given user (not locked or
    otherwise own by the user).
    """
    user1 = User.objects.get(username=self.username)
    # create new user
    user2 = User.objects.create_user(username='testuser', password='testuser-pass')
    accessible_pipelines_user1 = Pipeline.get_accesible_pipelines(user1)
    self.assertEqual(len(accessible_pipelines_user1),1)
    self.assertEqual(accessible_pipelines_user1[0], Pipeline.objects.all()[0])
    self.assertEqual(len(Pipeline.get_accesible_pipelines(user2)), 0)