def test_versions_addons_generation(self): num_appversions = AppVersion.objects.all().count() generate_version(self.addon, APPS['android']) eq_(Version.objects.all().count(), 1) eq_(File.objects.all().count(), 1) eq_(AppVersion.objects.all().count(), num_appversions + 2) eq_(ApplicationsVersions.objects.all().count(), 1)
def test_versions_themes_generation(self): num_appversions = AppVersion.objects.all().count() generate_version(self.addon) eq_(Version.objects.all().count(), 1) eq_(File.objects.all().count(), 1) eq_(AppVersion.objects.all().count(), num_appversions) eq_(ApplicationsVersions.objects.all().count(), 0)