"""Tests joulia.unit_conversions.
"""

from django.test import TestCase

from joulia import unit_conversions


class GramsToPoundsTest(TestCase):
    def test_grams_to_pounds(self):
        self.assertEquals(unit_conversions.grams_to_pounds(1000.0), 2.20462)


class GramsToOuncesTest(TestCase):
    def test_grams_to_ounces(self):
        self.assertEquals(unit_conversions.grams_to_ounces(1000.0), 35.27392)

[(11, 'joulia.unit_conversions.grams_to_pounds', 'unit_conversions.grams_to_pounds', False, 'from joulia import unit_conversions\n'), (16, 'joulia.unit_conversions.grams_to_ounces', 'unit_conversions.grams_to_ounces', False, 'from joulia import unit_conversions\n')]