def test_show_attrs(self): with Print.patch() as p: show_attrs('hcurve', self.calc_id) self.assertEqual("'hcurve' is not in <DataStore %d>" % self.calc_id, str(p)) with Print.patch() as p: show_attrs('hcurves', self.calc_id) self.assertEqual("nbytes 48", str(p))
def test_show_attrs(self): with Print.patch() as p: show_attrs('hcurve', self.calc_id) self.assertEqual("'hcurve' is not in <DataStore %d>" % self.calc_id, str(p)) with Print.patch() as p: show_attrs('hcurves', self.calc_id) self.assertEqual("imtls [['PGA' '3']\n ['SA(0.1)' '3']]\nnbytes 48", str(p))
def test_show_attrs(self): with Print.patch() as p: show_attrs('hcurve', self.calc_id) self.assertEqual("'hcurve' is not in <DataStore %d>" % self.calc_id, str(p)) with Print.patch() as p: show_attrs('hcurves', self.calc_id) self.assertEqual("imtls [['PGA' '3']\n ['SA(0.1)' '3']]\nnbytes 48", str(p))
def test_show_attrs(self): with Print.patch() as p: show_attrs('sitecol', self.calc_id) self.assertEqual('__pyclass__ openquake.hazardlib.site.SiteCollection', str(p))
def test_show_attrs(self): with Print.patch() as p: show_attrs('poes', self.calc_id) self.assertEqual('nbytes 48', str(p))
def test_show_attrs(self): with Print.patch() as p: show_attrs('sitecol', self.calc_id) self.assertEqual( '__pyclass__ openquake.hazardlib.site.SiteCollection\nnbytes 37', str(p))