'Ungrouped # of students wasn\'t displaying correctly, see: https://github.com/learningequality/ka-lite/pull/2230
In particular it seems to have only occurred when a non-english language was set, so this test tried to
mock a language pack download'

def test_ungrouped_number_displays_correctly(self):

    facility = self.facility
    params = {'zone_id': None, 'facility_id': facility.id, 'group_id': 'Ungrouped'}
    self.browser_login_admin(**self.admin_data)
    self.register_device()
    user = FacilityUser(username='test_user', facility=self.facility, group=None)
    user.set_password(raw_password='not-blank')
    user.save()
    self.browse_to(self.reverse('group_management', kwargs=params))
    element = WebDriverWait(self.browser, 10).until(EC.presence_of_element_located((By.XPATH, "//div[@id='groups']/div/dl/dd")))
    self.assertEqual(element.text, '1', 'Does    not    report    one    user    for    group.')
