Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(42)

Unified Diff: state/machine_test.go

Issue 7598043: Annotation documents and Environment Entity
Patch Set: Annotation documents and Environment Entity Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: state/machine_test.go
=== modified file 'state/machine_test.go'
--- state/machine_test.go 2013-03-05 21:27:18 +0000
+++ state/machine_test.go 2013-03-11 16:03:32 +0000
@@ -622,3 +622,14 @@
return s.State.Machine(s.machine.Id())
})
}
+
+func (s *MachineSuite) TestAnnotationRemovalForMachine(c *C) {
+ s.machine.SetAnnotation("mykey", "myvalue")
fwereade 2013/03/13 10:41:42 Error here as well.
+ err := s.machine.EnsureDead()
+ c.Assert(err, IsNil)
+ err = s.machine.Remove()
+ c.Assert(err, IsNil)
+ ann, err := s.machine.Annotations()
+ c.Assert(err, IsNil)
+ c.Assert(ann, DeepEquals, make(map[string]string))
+}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b