Exemplo n.º 1
0
    def test_docgen_to_python_args(self):

        props = self.data['props']

        for prop_name, prop in list(props.items()):
            self.assertEqual(js_to_py_type(prop['type']),
                             self.expected_arg_strings[prop_name])
Exemplo n.º 2
0
    def test_docgen_to_python_args(self):

        props = self.data['props']

        for prop_name, prop in list(props.items()):
            self.assertEqual(
                js_to_py_type(prop['flowType'], is_flow_type=True),
                self.expected_arg_strings[prop_name]
            )