def testUserExists(self):

        '''
        userExists() should check if there is at least one admin.
        '''

        # False with no administrators.
        self.assertFalse(User.userExists())

        admin = User('username', 'password', True)
        db.session.add(admin)
        db.session.commit()

        # True with an administrator.
        self.assertTrue(User.userExists())