@@ -113,7 +113,8 @@ def test_create(self):
113113 self .assertEquals (len (Group .objects .filter (type = "wg" )), num_wgs )
114114
115115 # creation
116- r = self .client .post (url , dict (acronym = "testwg" , name = "Testing WG" , state = "proposed" ))
116+ state = GroupStateName .objects .get (slug = "bof" )
117+ r = self .client .post (url , dict (acronym = "testwg" , name = "Testing WG" , state = state .pk ))
117118 self .assertEquals (r .status_code , 302 )
118119 self .assertEquals (len (Group .objects .filter (type = "wg" )), num_wgs + 1 )
119120 group = Group .objects .get (acronym = "testwg" )
@@ -149,7 +150,8 @@ def test_create_based_on_existing(self):
149150 self .assertEquals (Group .objects .get (acronym = group .acronym ).state_id , "bof" )
150151
151152 # confirm elevation
152- r = self .client .post (url , dict (name = "Test" , acronym = group .acronym , confirmed = "1" , state = "proposed" ))
153+ state = GroupStateName .objects .get (slug = "proposed" )
154+ r = self .client .post (url , dict (name = "Test" , acronym = group .acronym , confirmed = "1" ,state = state .pk ))
153155 self .assertEquals (r .status_code , 302 )
154156 self .assertEquals (Group .objects .get (acronym = group .acronym ).state_id , "proposed" )
155157 self .assertEquals (Group .objects .get (acronym = group .acronym ).name , "Test" )
@@ -193,12 +195,13 @@ def test_edit_info(self):
193195 f .write ("This is a charter." )
194196 area = group .parent
195197 ad = Person .objects .get (name = "Aread Irector" )
198+ state = GroupStateName .objects .get (slug = "bof" )
196199 r = self .client .post (url ,
197200 dict (name = "Mars Not Special Interest Group" ,
198201 acronym = "mnsig" ,
199202 parent = area .pk ,
200203 ad = ad .pk ,
201- state = group . state .pk ,
204+ state = state .pk ,
202205 chairs = "aread@ietf.org, ad1@ietf.org" ,
203206 secretaries = "aread@ietf.org, ad1@ietf.org, ad2@ietf.org" ,
204207 techadv = "aread@ietf.org" ,
0 commit comments