# Path: washmap/stats/models.py
# class StatValue(models.Model):
#     class Meta:
#         unique_together = ('description', 'country', 'year')
# 
#     description = models.ForeignKey(StatDescription)
#     country = models.ForeignKey(Country)
#     year = models.IntegerField()
#     value = models.DecimalField(max_digits=20, decimal_places=10, null=True, blank=True)  # nopep8
# 
#     def __unicode__(self):
#         return "%s, %s, %s" % (
#             self.country,
#             self.year,
#             self.value
#         )


import json
import pytest
from bs4 import BeautifulSoup
from django_dynamic_fixture import G
from django.contrib.auth.models import User
from django.utils import translation
from main.models import Country
from country_comparison.views import CountrySummary
from ..models import StatValue
from __future__ import unicode_literals, absolute_import






@pytest.mark.django_db
@pytest.mark.urls('country_comparison.test_urls')
def test_basic_stat_presence(
    group_a, stat_a_i, zambia, summary_url, client
):

# Path: washmap/stats/models.py
# class StatValue(models.Model):
#     class Meta:
#         unique_together = ('description', 'country', 'year')
# 
#     description = models.ForeignKey(StatDescription)
#     country = models.ForeignKey(Country)
#     year = models.IntegerField()
#     value = models.DecimalField(max_digits=20, decimal_places=10, null=True, blank=True)  # nopep8
# 
#     def __unicode__(self):
#         return "%s, %s, %s" % (
#             self.country,
#             self.year,
#             self.value
#         )


# Path: washmap/stats/tests/country_summary_view_tests.py
import json
import pytest
from bs4 import BeautifulSoup
from django_dynamic_fixture import G
from django.contrib.auth.models import User
from django.utils import translation
from main.models import Country
from country_comparison.views import CountrySummary
from ..models import StatValue

from __future__ import unicode_literals, absolute_import






@pytest.mark.django_db
@pytest.mark.urls('country_comparison.test_urls')
def test_basic_stat_presence(
    group_a, stat_a_i, zambia, summary_url, client
):

    G(StatValue, description=stat_a_i, country=zambia)