original_docstring: 
          Ensure we can create a new microtosca model
          
docstring: Ensure we can create a new microtosca model
docstring_tokens: Ensure we can create a new microtosca model
code: def create_microtosca(self):
          """
          Ensure we can create a new microtosca model
          """
          url = reverse('create-microtosca')
          data = {'name': self.name}
          response = self.client.post(url, data, format='json')
          response_data = json.loads(response.content)
          self.assertEqual(response.status_code, status.HTTP_201_CREATED)
          expected = {
              "name": self.name,
              "nodes": [],
              "links": [],
              "groups": []
          }
          self.assertEqual(response_data, expected)
code_tokens: def create_microtosca ( self ) : url = reverse ( 'create-microtosca' ) data = { 'name' : self . name } response = self . client . post ( url , data , format = 'json' ) response_data = json . loads ( response . content ) self . assertEqual ( response . status_code , status . HTTP_201_CREATED ) expected = { "name" : self . name , "nodes" : [ ] , "links" : [ ] , "groups" : [ ] } self . assertEqual ( response_data , expected )
short_docstring: Ensure we can create a new microtosca model
short_docstring_tokens: Ensure we can create a new microtosca model
comment: """
          Ensure we can create a new microtosca model
          """