pub async fn line_contains<'a, S>(&mut self, text: S)
    where
        S: Into<Cow<'a, str>>,
    {
        let text = text.into();
        let message = self.read_line().await;
        assert!(
            message.contains(text.as_ref()),
            "did not find '{}' in message {:?}",
            text,
            message,
        )
    }
/// Consumes the next line of output, asserting if it doesn't contain text.
Consumes the next line of output, asserting if it doesn't contain text.
Consumes the next line of output asserting if it doesn ' t contain text .
pub async fn line_contains<'a, S>(&mut self, text: S)
    where
        S: Into<Cow<'a, str>>,
    {
        let text = text.into();
        let message = self.read_line().await;
        assert!(
            message.contains(text.as_ref()),
            "did not find '{}' in message {:?}",
            text,
            message,
        )
    }
pub async fn line_contains < ' a , S > ( & mut self , text : S ) where S : Into < Cow < ' a , str > > , { let text = text . into ( ) ; let message = self . read_line ( ) . await ; assert ! ( message contains ( text as_ref ( ) ) " " text message ) }
Consumes the next line of output, asserting if it doesn't contain text.
Consumes the next line of output asserting if it doesn ' t contain text .
&mut self
text
S
&mut self
text
S