Beispiel #1
0
class DialerSettingModel(TestCase):

    """Test DialerSetting model"""

    fixtures = ['auth_user.json']

    def setUp(self):
        self.dialer_setting = DialerSetting(
            name='test_setting',
            max_frequency=100,
            callmaxduration=1800,
            maxretry=3,
            max_calltimeout=45,
            max_cpg=10,
            max_subr_cpg=1000,
        )
        self.dialer_setting.save()

        self.assertTrue(self.dialer_setting.__unicode__())

    def test_name(self):
        self.assertEqual(self.dialer_setting.name, "test_setting")

    def teardown(self):
        self.dialer_setting.delete()
Beispiel #2
0
    def setUp(self):
        self.dialer_setting = DialerSetting(
            name='test_setting',
            max_frequency=100,
            callmaxduration=1800,
            maxretry=3,
            max_calltimeout=45,
            max_cpg=10,
            max_subr_cpg=1000,
        )
        self.dialer_setting.save()

        self.assertTrue(self.dialer_setting.__unicode__())