~ubuntu-branches/ubuntu/saucy/gst0.10-python/saucy

« back to all changes in this revision

Viewing changes to testsuite/test_caps.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2011-01-22 14:16:57 UTC
  • mfrom: (1.3.5 upstream) (18.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110122141657-zbk0crefw35s69d6
Tags: 0.10.21-1
* New upstream stable release, "She used to be an ironhorse, twenty years ago".
  + debian/control:
    - Require GStreamer core/base >= 0.10.32.

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
            gst.Caps ("some/mime, _double = (double) 1.0; other/mime, _int = { 1, 2 }"),
181
181
            gst.Caps ("some/mime, _double = (double) 1.0"))
182
182
 
 
183
    def testNoneValue(self):
 
184
        caps = gst.Caps("foo")
183
185
        
 
186
        def invalid_assignment():
 
187
            caps[0]["bar"] = None
 
188
        self.assertRaises(TypeError, invalid_assignment)
 
189
 
 
190
        def invalid_set_value():
 
191
            caps[0].set_value("bar", None)
 
192
        self.assertRaises(TypeError, invalid_set_value)
 
193
 
 
194
 
184
195
if __name__ == "__main__":
185
196
    unittest.main()