@aronasorman @bcipolli  I have created this function 

from securesync.models import Zone
from fle_utils.config.models import Settings

  def register_device(self):
        Zone(name="test_zone").save()
        Settings.set("registered", True)


and called in it ,

def test_add_language_pack(self):
        ''' Test to check whether a language pack is added successfully or not'''	
        #Login as admin
        self.browser_login_admin()
	self.register_device()


but it still takes to registration page.