def _NewBar():
    bar_instance = sample_service_mojom.Bar()
    bar_instance.alpha = 22
    bar_instance.beta = 87
    bar_instance.gamma = 122
    bar_instance.type = sample_service_mojom.Bar.Type.BOTH
    return bar_instance
 def testConstructor(self):
     bar_instance = sample_service_mojom.Bar()
     foo_instance = sample_service_mojom.Foo(name="Foo",
                                             x=-1,
                                             y=5,
                                             a=False,
                                             bar=bar_instance)
     self.assertEquals(foo_instance.name, "Foo")
     self.assertEquals(foo_instance.x, -1)
     self.assertEquals(foo_instance.y, 5)
     self.assertEquals(foo_instance.a, False)
     self.assertEquals(foo_instance.bar, bar_instance)