Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_wdl_specificaiton.py   ftw.lawgiver(Download)
        states = {'Bar': Status('Bar', []),
                  'Baz': Status('Baz', [])}
        obj.augment_states(states)
 
        self.assertEquals(obj.src_status, states['Bar'])
        states = {'Baz': Status('Baz', [])}
        with self.assertRaises(ValueError) as cm:
            obj.augment_states(states)
 
        self.assertEquals('No such src_status "Bar" (foo).',
        states = {'Bar': Status('Bar', [])}
        with self.assertRaises(ValueError) as cm:
            obj.augment_states(states)
 
        self.assertEquals('No such dest_status "Baz" (foo).',