def test_reregistration(self):
        """Test that only one admin can exist at a time and reregistration
        with new credentials only works when logged in"""
        self.clear_db()
        rv = self.register('barney', 'abc', 'abc')
        self.logout()            
        rv = self.register('barney', 'abc', 'abc')
        assert 'There can only be one admin' in rv.data
        self.login('barney', 'abc')
        rv = self.register('moe', 'ugly', 'ugly') # clears the admin
        rv = self.register('moe', 'ugly', 'ugly')
        assert 'You are the new master of this blog' != rv.data
        assert_equal(Admin.query.count(), 1)
dataset/ETHPy150Open eugenkiss/Simblin/test/test_views.py/TestRegistration.test_reregistration/operator `in` -> `!=`