def test_find_all(self):
        """Test if all the user profiles which exist in the database
         are returned"""
        self._create_sample_user("test1")
        self._create_sample_user("user2")
        found_userprofiles = UserProfileModel.find_all()

        self.assertEqual(len(found_userprofiles), 2)
    def test_find_all_no_users(self):
        """Test if an empty list is returned
        if there are no trainings in the database"""
        found_userprofiles = UserProfileModel.find_all()

        self.assertEqual(found_userprofiles, [])