Ejemplo n.º 1
0
    def test_ddt_update_invalid_dmg_state(self):
        dd = models.DmgDistTotalData(
            dmg_dist_total=self.ddt, dmg_state='complete', mean=0.0,
            stddev=0.0)
        dd.save()

        self._test_insert_update_invalid(dd, 'dmg_dist_total_data')
Ejemplo n.º 2
0
    def test_ddt_update_valid_dmg_state(self):
        dd = models.DmgDistTotalData(
            dmg_dist_total=self.ddt, dmg_state='complete', mean=0.0,
            stddev=0.0)
        dd.save()

        dd.dmg_state = 'moderate'
        dd.save()
Ejemplo n.º 3
0
    def make_data(self, dmg_state, mean, stddev):
        data = models.DmgDistTotalData(
            dmg_dist_total=self.ddt,
            dmg_state=dmg_state,
            mean=mean,
            stddev=stddev)

        data.save()
        self.data.append(data)
Ejemplo n.º 4
0
 def test_ddt_insert_valid_dmg_state(self):
     for ds in self.DMG_STATES:
         dd = models.DmgDistTotalData(
             dmg_dist_total=self.ddt, dmg_state=ds, mean=0.0, stddev=0.0)
         dd.save()