Revision 47eeffa9 snf-cyclades-app/synnefo/db/tests.py

b/snf-cyclades-app/synnefo/db/tests.py
45 45
        """Test a flavor object, its internal cost calculation and naming methods"""
46 46
        flavor = Flavor.objects.get(pk=30000)
47 47

  
48
        # test current active/inactive costs
49
        c_active = flavor.current_cost_active
50
        c_inactive = flavor.current_cost_inactive
51

  
52
        self.assertEqual(c_active, 10, 'flavor.cost_active should be 10! (%d)' % (c_active,))
53
        self.assertEqual(c_inactive, 5, 'flavor.cost_inactive should be 5! (%d)' % (c_inactive,))
54

  
55 48
        # test name property, should be C1R1024D10
56 49
        f_name = flavor.name
57 50

  

Also available in: Unified diff